package com.ruoyi.userManagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.userManagement.mapper.XuanUserMapper;
import com.ruoyi.userManagement.domain.XuanUser;
import com.ruoyi.userManagement.service.IXuanUserService;

/**
 * 用户信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-04
 */
@Service
public class XuanUserServiceImpl implements IXuanUserService 
{
    @Autowired
    private XuanUserMapper xuanUserMapper;

    /**
     * 查询用户信息
     * 
     * @param usrId 用户信息主键
     * @return 用户信息
     */
    @Override
    public XuanUser selectXuanUserByUsrId(Long usrId)
    {
        return xuanUserMapper.selectXuanUserByUsrId(usrId);
    }

    /**
     * 查询用户信息列表
     * 
     * @param xuanUser 用户信息
     * @return 用户信息
     */
    @Override
    public List<XuanUser> selectXuanUserList(XuanUser xuanUser)
    {
        return xuanUserMapper.selectXuanUserList(xuanUser);
    }

    /**
     * 新增用户信息
     * 
     * @param xuanUser 用户信息
     * @return 结果
     */
    @Override
    public int insertXuanUser(XuanUser xuanUser)
    {
        return xuanUserMapper.insertXuanUser(xuanUser);
    }

    /**
     * 修改用户信息
     * 
     * @param xuanUser 用户信息
     * @return 结果
     */
    @Override
    public int updateXuanUser(XuanUser xuanUser)
    {
        return xuanUserMapper.updateXuanUser(xuanUser);
    }

    /**
     * 批量删除用户信息
     * 
     * @param usrIds 需要删除的用户信息主键
     * @return 结果
     */
    @Override
    public int deleteXuanUserByUsrIds(Long[] usrIds)
    {
        return xuanUserMapper.deleteXuanUserByUsrIds(usrIds);
    }

    /**
     * 删除用户信息信息
     * 
     * @param usrId 用户信息主键
     * @return 结果
     */
    @Override
    public int deleteXuanUserByUsrId(Long usrId)
    {
        return xuanUserMapper.deleteXuanUserByUsrId(usrId);
    }
}
